﻿namespace AVCUMPlatform.WXService.Model
{
    /// <summary>
    /// 微信访问访问token
    /// </summary>
    public class WXAccessToken : WXRes
    {
        /// <summary>
        /// token
        /// </summary>
        public string access_token { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        public string expires_in { get; set; }
        /// <summary>
        /// 刷新token
        /// </summary>
        public string refresh_token { get; set; }
        /// <summary>
        /// openid
        /// </summary>
        public string openid { get; set; }
        /// <summary>
        /// 范围
        /// </summary>
        public string scope { get; set; }
    }

    /// <summary>
    /// 全局token
    /// </summary>
    public class GetOverAllToken : WXRes
    {
        /// <summary>
        /// 全局token
        /// </summary>
        public string access_token { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        public string expires_in { get; set; }
    }
    /// <summary>
    /// 获取unionid和openid
    /// </summary>
    public class GetWXUnionid : WXRes
    {
        /// <summary>
        /// 用户唯一标识
        /// </summary>
        public string openid { get; set; }
        /// <summary>
        /// 用户在开放平台的唯一标识符
        /// </summary>
        public string unionid { get; set; }
    }
} 

